package com.b2b.util;

import com.b2b.model.entity.InquiryReceiving;
import com.b2b.service.InquiryReceivingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class InquiryReceivingUtil {
    private final InquiryReceivingService inquiryReceivingService;
    @Autowired
    public InquiryReceivingUtil(InquiryReceivingService inquiryReceivingService){
        this.inquiryReceivingService = inquiryReceivingService;
    }

    public Integer insertInquiryReceiving(InquiryReceiving inquiryReceiving){
        Integer result = inquiryReceivingService.insert(inquiryReceiving);
        return result;
    }
}
